package org.example.demo1startjava17.designPattern.cStructuralPatterns.c1DecoratorPattern.demo1;

public class DecoratorPatternDemo {
    public static void main(String[] args) {
        OrderService percentageService = new PercentageDiscountDecorator();
        double orderTotal = 300.0;
        double discountedTotal = percentageService.applyDiscount(orderTotal);
        System.out.println("Discounted order total: " + discountedTotal);
    }

}
